home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d13 / pull217.arc / ADVANCED.DEF next >
Text File  |  1990-09-19  |  4KB  |  141 lines

  1. MAXDEFS=3
  2.  
  3. ' ADVANCED.DEF - Demonstrates the most advanced features of PullDown v2.15
  4. ' Heavily commented source courtesy of Sam Horton, MicroDynamics
  5. ' Last update Sept. 8, 1990
  6.  
  7. DEF
  8. %Prompt Samples
  9.  
  10.  
  11.      '012345678901234567890
  12.      %Sample User-Defined Full Custom HELP Menu
  13.           HI=7
  14.  
  15.           ' This one is particularly slick... and useful.
  16.           ' An entire tutorial/online reference could be defined using
  17.           ' this system with these commands!
  18.  
  19.           SCROLLBOX=SAMPLE.HLP,Sample Help
  20.           ABORT
  21.  
  22.           ' Returns to menu instead of exiting to execute TEMPPULL.BAT
  23.           ' Syntax is SCROLLBOX=HelpFile,HeaderString
  24.           ' Where: HelpFile is a valid DOS file containing only ASCII
  25.           '        HeaderString is a unique header found in the help file,
  26.           '        and the help is ended by ###  ... see PULL215.DOC
  27.  
  28.      '012345678901234567890
  29.      %Build Your Own Batch (Variable Handling Demo)
  30.      ' NOTE: This is fundamentally different from v2.01
  31.      ' with all standard batch facilities available.  See documentation.
  32.      ' In v2.17, not v2.15, the REQUIRED and NOTREQUIRED keywords are
  33.      ' present..........
  34.           HI=6
  35.           OKBOX=You will now interactively build a unique batch file.
  36.           ?Enter Drive as D:  [Enter]=Default
  37.           ?Enter Full CD\Path.. command:  [Enter]=Default
  38.           REQUIRED
  39.           ?Enter Program Execution Command (e.g. 123):  [Required]
  40.           +echo off
  41.           +cls
  42.           +%1
  43.           +%2
  44.           +%3
  45.           +PULLDWN
  46.  
  47.  
  48.  
  49.      '012345678901234567890
  50.      %Using SET PULLDWN=D:\PATH
  51.           HI=10
  52.           ' You could literally have entire menu subsystems
  53.           ' set up in separate directories this way!
  54.           ' Commented out here so that it does not screw up during your
  55.           ' demo run.
  56.           OKBOX=Examine ADVANCED.DEF to see why this might be done.
  57.           ' Sample...
  58.           ' +SET PULLDWN=C:\SECRET\MENUS
  59.           ' PULLDWN
  60.           ' You would then start from an entirely new set in that subdir.
  61.           SCROLLBOX=SAMPLE.HLP,Pop up Warning
  62.           ABORT
  63.  
  64.      ' The solo "-" on a %TitleLine defines an UNSELECTABLE bar.
  65.      %-
  66.  
  67.      '012345678901234567890
  68.      %Sample Dialogs
  69.           ' For you REAL power users, here they are all in one.
  70.           ' NOTREQUIRED is the default status of input boxes.
  71.           HI=7
  72.           YORN=Are you sure you want to use this option?
  73.  
  74.           REQUIRED
  75.           ?Sample of Prompting for REQUIRED input:
  76.  
  77.           NOTREQUIRED
  78.           ?Sample of Prompting for Input that can be NUL (Nothing):
  79.  
  80.           OKBOX=This option requires a password.  [Esc]=Quit
  81.           SCROLLBOX=SAMPLE.HLP,Red Herring
  82.           PASS=YouCannotKnowThis
  83.  
  84.           ABORT
  85.  
  86.           ' Password failures ABORT execution.  Since you did not know
  87.           ' that password, you never got to this option.
  88.           ' Used ABORT as this is only a demo file.
  89.  
  90.      %-
  91.  
  92.      '012345678901234567890
  93.      %About PullDown
  94.           HI=0
  95.           SCROLLBOX=SAMPLE.HLP,About PullDown...
  96.           ABORT
  97.  
  98. DEF
  99. % Nest Sample
  100.      %Return to Main Menu
  101.           OKBOX=You could have done this by mouse clicking on "PullDown"
  102.           @PULLDWN.DEF
  103.  
  104.           ' An @ command looks either 1) The directory PULLDWN1.EXE is
  105.           ' started from, OR 2) The path defined by SET PULLDWN=PathName
  106.           ' If not found, a dialog is popped telling you so, and you are
  107.           ' prompted for a valid definition file.
  108.  
  109.      %Circle back to this menu
  110.           @ADVANCED.DEF
  111.  
  112.      %Enter WINDOWS menu
  113.           @WINDOWS.DEF
  114.  
  115. DEF
  116. %Exit
  117.      %Return to the Main Menu
  118.  
  119.      ' NOTICE that this is *not* exactly the same string as above ^^
  120.      ' if it was, then the FIRST occurence would be executed.  This
  121.      ' small limitation will disappear upon release of the compiler.
  122.  
  123.           OKBOX=You could have done this by mouse clicking on "PullDown"
  124.           @PULLDWN.DEF
  125.  
  126.      '012345678901234567890
  127.      %Exit to DOS
  128.           HI=1
  129.           YORN=Are you sure?
  130.           OKBOX=Thank you for evaluating PullDown!  Enjoy!
  131.           +echo off
  132.           +cls
  133.           +echo Type PULLDWN [ENTER] to return to PullDown.
  134.           +echo.
  135.  
  136. ' End of ADVANCED.DEF file.
  137. ' SLH 8/90
  138. ' Please consider supporting shareware!  Thank you.
  139.  
  140.  
  141.